package version1_1;

/**
 * @program:IntelliJ IDEA
 * @Description:游戏手势转化
 * @author:Mr.CheCheHuiBujianO
 * @data: 2022/7/12 16:25
 */
public class GestureTransitionIMPH implements GestureTransition{
    @Override
    public int gesture(String gesture) {
        //利用switch-case语句进行一个手势的转换
        int gestureResult = -1;
        switch (gesture){
            case "剪刀":
                gestureResult = 0;
                break;
            case "石头":
                gestureResult = 1;
                break;
            case "布":
                gestureResult = 2;
                break;
        }
        return gestureResult;
    }
}
